/**
 * 
 */
package com.p2p.front.enums;

import org.apache.commons.lang3.StringUtils;

/**
 * @author ruiqi
 *
 */
public enum BorrowAuth {

	idcard,
	job,
	credit,
	income,
	house,
	car,
	marriage,
	edu,
	address,
	indeed,
	;
	private BorrowAuth() {
		
	}
	
	public static BorrowAuth getValue(String name){
		if(StringUtils.isBlank(name)){
			return null;
		}
		for(BorrowAuth borrowAuth:BorrowAuth.values()){
			if(StringUtils.equals(name, borrowAuth.name())){
				return borrowAuth;
			}
		}
		return null;
	}
}
